<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head lang="en">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>RabbitMQ示例</title>
</head>

<body>
    <div style="margin-top: 120px; text-align: center;">
        <h3>-- 历史订单 --</h3>
        <table border="1" cellpadding="5px" style="margin:auto; width:750px;">
            <tr>
                <th>订单ID</th>
                <th>订单状态</th>
                <th>创建时间</th>
                <th>过期时间</th>
            </tr>
            <tr th:each="order:${orders}">
                <td th:text="${order.id}"></td>
                <td th:text="${order.status}"></td>
                <td th:text="${order.createTime}"></td>
                <td th:text="${order.expiredTime}"></td>
            </tr>
        </table>
        <p><a href="#" th:href="@{'/index'}">返回主页</a></p>
    </div>
</body>

</html>